package org.action;

import org.bean.O2rankgame;
import org.bean.O2ranktap;
import org.service.GameService;
import org.service.TapService;

import com.opensymphony.xwork2.ActionSupport;

public class PlayerInfoAction extends ActionSupport {

	private TapService tapservice;
	private GameService gameservice;
	private O2ranktap o2ranktap;
	private O2rankgame o2rankgame;
	private int uid;


	@Override
	public String execute() throws Exception {
		// 需要两个方法 一 根据UID查询TAP表的所有实体BEAN、二需要查询玩家最后一首玩的歌曲

		
		o2ranktap = tapservice.selectbyuid(uid);
		o2rankgame = gameservice.SelectLastGameTimeByUid(uid);

		return SUCCESS;
	}

	public TapService getTapservice() {
		return tapservice;
	}

	public void setTapservice(TapService tapservice) {
		this.tapservice = tapservice;
	}

	public GameService getGameservice() {
		return gameservice;
	}

	public void setGameservice(GameService gameservice) {
		this.gameservice = gameservice;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public O2ranktap getO2ranktap() {
		return o2ranktap;
	}

	public void setO2ranktap(O2ranktap o2ranktap) {
		this.o2ranktap = o2ranktap;
	}

	public O2rankgame getO2rankgame() {
		return o2rankgame;
	}

	public void setO2rankgame(O2rankgame o2rankgame) {
		this.o2rankgame = o2rankgame;
	}


}
